Hi Rob,
You are correct - right or wrong - our Plugin ignores Notification Messages when KFLOP Axes have been disabled. You would need to "Reset" and enable axis before your Button could send Notifications to KFLOP.
A workaround might be to set an I/O bit instead using a Mach3 Output. Actually it seems Mach3 keeps clearing those as well when in EStop mode. However it seems that if you set an output it is set long enough to be detected by a KFLOP User Program before Mach3 decides to reset it.
Here is an example. Configure a Mach3 Output to some real or Virtual KFLOP Bit.
Configure your Mach3 Button Script to pulse the Output
ActivateSignal(OutPut6)
sleep(1000)
DeActivateSignal(OutPut6)
Have a watch loop in KFLOP monitoring for the bit to change. Replace the Print statement with whatever you need to do like Set or Clear the Konnect Bit.
#include "KMotionDef.h"
main()
{
for (;;)
{
while(ReadBit(47)) ;
printf("Low\n");
while(!ReadBit(47)) ;
printf("High\n");
}
}
HTH
Regards
TK